<template>
	<!-- 收藏 -->
	<view>
		<view class="tool">
			<view style="display: flex;align-items: center;" @click="onConsult">
				<u-icon name="server-fill"></u-icon>
				<view style="margin-left: 20rpx">咨询&nbsp;</view>
			</view>
			<!-- <view class="flie"></view>
			<view style="display: flex; align-items: center;">
				<u-icon name="heart"></u-icon>
				<view style="margin-left: 20rpx"> 已收藏 </view>
			</view> -->
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {
			onConsult() {
				wx.openCustomerServiceChat({
					extInfo: {
						url: 'https://work.weixin.qq.com/kfid/kfc8e6ba70d41c62a15?enc_scene=ENC5qaUCtvr8HwvbAL3usyi1kJoX9sP1sdjJqKxRzNBWxgQ'
					},
					corpId: 'ww3462f3d1e12d09aa',
					success(res) {
						console.log(res);
					},
					fail(err) {
						console.log(err);
					}
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.tool {
		width: 100vw;
		bottom: 0rpx;
		position: fixed;
		background-color: #fff;
		height: 100rpx;
		display: flex;
		justify-content: space-around;
		align-items: center;
		box-shadow: 0 -5px 5px -5px rgb(223, 223, 223);

		.flie {
			width: 1rpx;
			height: 50rpx;
			border-left: 1rpx solid #eee;
		}
	}
</style>
